package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:37
 * @Description: TODO
 */
@TableName("t_security_pedestrian")
public class SecurityPedestrian {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long imageId;

    private String deviceId;

    private Integer channelId;

    private String snapTime;

    private String type;

    private String chip;

    private Integer bboxX;

    private Integer bboxY;

    private Integer bboxWidth;

    private Integer bboxHeight;

    private Boolean mark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createTime;

    private String imageSrc;

    private Integer count;

    public com.caipin.domain.table.SecurityPedestrian setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setImageId(Long imageId) {
        this.imageId = imageId;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setChannelId(Integer channelId) {
        this.channelId = channelId;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setSnapTime(String snapTime) {
        this.snapTime = snapTime;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setType(String type) {
        this.type = type;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setChip(String chip) {
        this.chip = chip;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setBboxX(Integer bboxX) {
        this.bboxX = bboxX;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setBboxY(Integer bboxY) {
        this.bboxY = bboxY;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setBboxWidth(Integer bboxWidth) {
        this.bboxWidth = bboxWidth;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setBboxHeight(Integer bboxHeight) {
        this.bboxHeight = bboxHeight;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setMark(Boolean mark) {
        this.mark = mark;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setCreateTime(String createTime) {
        this.createTime = createTime;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }

    public com.caipin.domain.table.SecurityPedestrian setCount(Integer count) {
        this.count = count;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.SecurityPedestrian))
            return false;
        com.caipin.domain.table.SecurityPedestrian other = (com.caipin.domain.table.SecurityPedestrian)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$imageId = getImageId(), other$imageId = other.getImageId();
        if ((this$imageId == null) ? (other$imageId != null) : !this$imageId.equals(other$imageId))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        Object this$channelId = getChannelId(), other$channelId = other.getChannelId();
        if ((this$channelId == null) ? (other$channelId != null) : !this$channelId.equals(other$channelId))
            return false;
        Object this$snapTime = getSnapTime(), other$snapTime = other.getSnapTime();
        if ((this$snapTime == null) ? (other$snapTime != null) : !this$snapTime.equals(other$snapTime))
            return false;
        Object this$type = getType(), other$type = other.getType();
        if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type))
            return false;
        Object this$chip = getChip(), other$chip = other.getChip();
        if ((this$chip == null) ? (other$chip != null) : !this$chip.equals(other$chip))
            return false;
        Object this$bboxX = getBboxX(), other$bboxX = other.getBboxX();
        if ((this$bboxX == null) ? (other$bboxX != null) : !this$bboxX.equals(other$bboxX))
            return false;
        Object this$bboxY = getBboxY(), other$bboxY = other.getBboxY();
        if ((this$bboxY == null) ? (other$bboxY != null) : !this$bboxY.equals(other$bboxY))
            return false;
        Object this$bboxWidth = getBboxWidth(), other$bboxWidth = other.getBboxWidth();
        if ((this$bboxWidth == null) ? (other$bboxWidth != null) : !this$bboxWidth.equals(other$bboxWidth))
            return false;
        Object this$bboxHeight = getBboxHeight(), other$bboxHeight = other.getBboxHeight();
        if ((this$bboxHeight == null) ? (other$bboxHeight != null) : !this$bboxHeight.equals(other$bboxHeight))
            return false;
        Object this$mark = getMark(), other$mark = other.getMark();
        if ((this$mark == null) ? (other$mark != null) : !this$mark.equals(other$mark))
            return false;
        Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
        if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
            return false;
        Object this$imageSrc = getImageSrc(), other$imageSrc = other.getImageSrc();
        if ((this$imageSrc == null) ? (other$imageSrc != null) : !this$imageSrc.equals(other$imageSrc))
            return false;
        Object this$count = getCount(), other$count = other.getCount();
        return !((this$count == null) ? (other$count != null) : !this$count.equals(other$count));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.SecurityPedestrian;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $imageId = getImageId();
        result = result * 59 + (($imageId == null) ? 43 : $imageId.hashCode());
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $channelId = getChannelId();
        result = result * 59 + (($channelId == null) ? 43 : $channelId.hashCode());
        Object $snapTime = getSnapTime();
        result = result * 59 + (($snapTime == null) ? 43 : $snapTime.hashCode());
        Object $type = getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        Object $chip = getChip();
        result = result * 59 + (($chip == null) ? 43 : $chip.hashCode());
        Object $bboxX = getBboxX();
        result = result * 59 + (($bboxX == null) ? 43 : $bboxX.hashCode());
        Object $bboxY = getBboxY();
        result = result * 59 + (($bboxY == null) ? 43 : $bboxY.hashCode());
        Object $bboxWidth = getBboxWidth();
        result = result * 59 + (($bboxWidth == null) ? 43 : $bboxWidth.hashCode());
        Object $bboxHeight = getBboxHeight();
        result = result * 59 + (($bboxHeight == null) ? 43 : $bboxHeight.hashCode());
        Object $mark = getMark();
        result = result * 59 + (($mark == null) ? 43 : $mark.hashCode());
        Object $createTime = getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        Object $imageSrc = getImageSrc();
        result = result * 59 + (($imageSrc == null) ? 43 : $imageSrc.hashCode());
        Object $count = getCount();
        return result * 59 + (($count == null) ? 43 : $count.hashCode());
    }

    public String toString() {
        return "SecurityPedestrian(id=" + getId() + ", imageId=" + getImageId() + ", deviceId=" + getDeviceId() + ", channelId=" + getChannelId() + ", snapTime=" + getSnapTime() + ", type=" + getType() + ", chip=" + getChip() + ", bboxX=" + getBboxX() + ", bboxY=" + getBboxY() + ", bboxWidth=" + getBboxWidth() + ", bboxHeight=" + getBboxHeight() + ", mark=" + getMark() + ", createTime=" + getCreateTime() + ", imageSrc=" + getImageSrc() + ", count=" + getCount() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public Long getImageId() {
        return this.imageId;
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public Integer getChannelId() {
        return this.channelId;
    }

    public String getSnapTime() {
        return this.snapTime;
    }

    public String getType() {
        return this.type;
    }

    public String getChip() {
        return this.chip;
    }

    public Integer getBboxX() {
        return this.bboxX;
    }

    public Integer getBboxY() {
        return this.bboxY;
    }

    public Integer getBboxWidth() {
        return this.bboxWidth;
    }

    public Integer getBboxHeight() {
        return this.bboxHeight;
    }

    public Boolean getMark() {
        return this.mark;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public String getImageSrc() {
        return this.imageSrc;
    }

    public Integer getCount() {
        return this.count;
    }
}

